<div class="guide_wrap">
    <div ng-include="'html/component/nav.html'" ng-controller="NavCtrl"></div>
    <div class="main_wrap">
        <div class="shade" ng-hide="shade" ng-click="allHide()"></div>
        <!--导航菜单-->
        <div class="box leftbox" ng-hide="navBox" ng-swipe-left="navClose();" >
            <div class="search_warp">
                <input type="text" ng-model="input_keywords" id="txt_input" placeholder="{{language.TIPS_GUIDE_INPUT_GOODS_CODE}}"><!--输入您要查询的商品编号-->
                <span class="search_btn" ng-click="search_goods(input_keywords);">
                </span>
            </div>
            <h2 class="high_level" ng-click="hotGoods();">{{language.TIP_GUIDE_HOT_SELLS}}<!--热卖商品--></h2>
            <div ng-repeat="c in category track by $index">
                <h2 class="high_level" ng-click="lowToggle($index,c.category_code)" ng-class="{true:'curr',false:''}[lowLevel == $index]">{{c | language_filter_show:'category_name'}}<span class="num">{{c.num}}</span><i class="triangle"></i></h2>
                <ul class="low_level" ng-hide="lowLevel != $index">
                    <li ng-repeat="s in sort" ng-click="goodsShow(c.category_code, s.sort_code)">
                        <i class="icon"></i>{{s | language_filter_show:'sort_name'}}<span class="num">{{s.num}}</span>
                    </li>
                </ul>
            </div>
        </div>
        <!--导购切换-->
        <div class="box rightbox rightbox_pers" ng-hide="persBox" ng-swipe-right="persClose();">
            <h3 class="title"><!--导购切换-->{{language.TIPS_GUIDE_SWITCH_GUIDE}}</h3>
            <ul class="shoppe" id="shoppe">
                <li ng-click="s_daogou(u);" ng-repeat="u in user" ng-class="{true: 'curr', false: ''}[daogou.UserCode==u.UserCode]">
                    <i class="icon"></i><span id="daogou_name" class="name">{{u.UserName}}</span><span style="visibility:hidden" class="code">{{u.UserCode}}</span>
                </li>
            </ul>
        </div>
        <!--商品展示-->
        <div class="goods_show_wrap" ng-hide="goods_show">
               <div class="swiper-container-list">
                    <div class="swiper-wrapper">
                        <div class="swiper-slide" ng-repeat="g in goodsList" ng-click="goodsDetail(g);"><i ng-if="g.is_hot == 1" class="hot_sale"></i><img class="goods_img" ng-src="{{get_http_image(g.SkuCode);}}" width="100%" height="70%" />
                            <ul class="goods_infor">
                                <li>{{g | language_filter_show:'GoodsName'}}</li>
                                <li><span class="name"><!--商品货号-->{{language.TIPS_GUIDE_GOODS_CODE}}：</span><span class="val">{{g.GoodsCode}}</span></li>
                                <li><span class="name"><!--售货价-->{{language.TIPS_GUIDE_SELL_PRICE}}：</span><span class="val">{{g.SkuPrice|number:2}}</span></li>
                                <li><span class="name"><!--会员价-->{{language.TIPS_GUIDE_VIP_PRICE}}：</span><span class="val">{{g.SkuVipPrice|number:2}}</span></li>
                            </ul>
                            </div>

                    </div>
                    <div class="swiper-pagination"></div>
                </div>
        </div>
        <!--商品详情-->
        <div class="goods_details" ng-hide="detail">
            <div class="goods_name"><b>{{goods | language_filter_show:'GoodsName'}} {{_g.GoodsCode}}</b><span class="evaluate" ng-repeat=" c in comments">{{c.title}}<em>({{c.count}})</em></span></div>
            <div class="goods_img">
                <div class="swiper-container">
                    <div class="swiper-wrapper">
                        <div class="swiper-slide"><img id='pic1' ng-src="{{picture_array[0]}}" width="100%" height="100%" /></div>
                        <div class="swiper-slide"><img id='pic2' ng-src="{{picture_array[1]}}" width="100%" height="100%" /></div>
                        <div class="swiper-slide"><img id='pic3' ng-src="{{picture_array[2]}}" width="100%" height="100%" /></div>
                    </div>
                    <div class="swiper-pagination"></div>
                </div>
            </div>
            <div class="goods_infor" ><!-- ng-repeat="g in g_detail "-->
                <div class="infor_main" >
                    <div class="sales"><span>{{language.TIP_GUIDE_SELLS_MONTH}}<em>{{goods.MonSales}}</em>{{language.TIP_GUIDE_SELLS_TYPE}}</span><span>{{language.TIP_GUIDE_SELLS_NUM}}<em>{{goods.total_num}}</em>{{language.TIP_GUIDE_SELLS_TYPE}}</span></div>										
                    <div class="price_promo">
                        <span class="price">{{language.TIPS_GUIDE_SELL_PRICE}}：<em>￥{{goods.SkuPrice|number:2}}</em></span><span class="price">{{language.TIPS_GUIDE_VIP_PRICE}}：<em>￥{{goods.SkuVipPrice|number:2}}</em></span>
                        <div class="promo"><label>促销信息：</label><p ng-repeat="p in promotions"><!--促销名字--><span>{{p.name}}</span><span ng-show ="p.pro_remark">{{p.remark}}</span></p></div>
                    </div>  
                    <p class="tt">{{language.TIPS_GUIDE_GOODS_SKU}}：</p>                 
                    <div class="goods_sku">
						<table>
							<tr>
								<th><!--规格-->{{language.TIPS_GUIDE_SKU}}</th>
								<th ng-repeat="color in colors">{{color | language_filter_show:'ColorName'}}</th>
							</tr>
							<tr ng-repeat="size in sizes">
								<th>{{size | language_filter_show:'SizeName'}}</th>
								<td ng-repeat="color in colors">
									<span  ng-repeat="sku in skus" ng-click="getSku(sku, color.ColorCode, size.SizeCode);" class="{{selected_goods.SkuCode==sku[color.ColorCode][size.SizeCode]['SkuCode']?'sku_num curr':''}}"> 
										{{sku[color.ColorCode][size.SizeCode]['SkuNum']}}  
									</span>件
								</td>
							</tr>
						</table>
					</div>
                    <div class="goods_recom" ng-show="isRec">
                        <span class="tt">{{language.TIPS_RECOMMEND_GOODS}}：</span>
                        <div class="recommendGoods" ng-repeat="r in recommendGoods"><img  ng-src="{{get_http_image(r.SkuCode);}}" width="70" height="70"><span class="wrap"><span>{{r | language_filter_show:'GoodsName'}}</span><br/><span>{{language.TIPS_GUIDE_SELL_PRICE}}:<em>￥{{r.SkuPrice| number:2}}</em></span></span><input type="checkbox" ng-model="check[r.SkuCode]" ng-checked="check[r.SkuCode]" ng-click="check(r.SkuCode, r, check[r.SkuCode]);"/></div>                   	
                    </div>                   
                    <div class="cart_buy">
                        <button class="back" ng-click="show_list();">
                            <!--返回-->{{language.ACT_BACK}}
                        </button>
                        <button class="buy_now" ng-click="buy(selected_goods, select_recomGoods);" >
                            <!--去结算-->{{language.ACT_BUYNOW}}
                        </button>
                        <button class="buy_now" ng-click="scan(_g)" ng-show = "purview['\/m6'].show == 1">
                            M6
                        </button>
                        <button class="buy_now" ng-click="touying(_g.GoodsCode)" ng-show = "purview['\/toupin'].show == 1">
                            {{language.TIPS_RECOMMEND_TOUPING}}
                        </button>
                    </div>
                </div>	
            </div>
        </div>
    </div>
    <div class="bottom_tool">
        <a class="tool nav" href="javascript:void(0);" ng-click="navToggle()" ng-class="navAnimate"> <img id="nav" src="./image/guide_tool01.png" height="100%" > </a><a class="tool pers" href="javascript:void(0);" ng-click="persToggle()" ng-class="persAnimate"> <img id="pers" src="./image/guide_tool04.png" height="100%"> </a>
    </div>
</div>




